package com.rocket.consumer;

import com.rocket.param.TeduClass;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.apache.rocketmq.spring.core.RocketMQTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.messaging.Message;
import org.springframework.messaging.support.MessageBuilder;
import org.springframework.stereotype.Component;

@Component
@RocketMQMessageListener(
        topic = "topicB",
        consumerGroup = "topicB-group",
        selectorExpression = "*"
)
public class TalkConsumerB implements RocketMQListener<String> {
    @Override
    public void onMessage(String rehi) {
        System.out.println("talkB接收到问候:" + rehi);
    }
}
